/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dbConnect;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author Administrator
 */
public class jdbcConnection {
    public  static Connection getConnection()throws Exception
    {
        String url="jdbc:sqlserver://localhost:1433;databaseName=ManagementEvents";
       Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
       return DriverManager.getConnection(url,"sa","1234$");
    }
    
    
}
